#ifndef __FLASH_DATA_H
#define __FLASH_DATA_H

#define NVS_PARTITION		storage_partition
#define NVS_PARTITION_DEVICE	FIXED_PARTITION_DEVICE(NVS_PARTITION)
#define NVS_PARTITION_OFFSET	FIXED_PARTITION_OFFSET(NVS_PARTITION)


int flash_device_init(void);
int flash_data_read(uint8_t id, uint8_t *data, uint32_t len);
int flash_data_write(uint8_t id, uint8_t *data, uint32_t len);

#endif // __FLASH_DATA_H